#start=led_display.exe#  ; use led exe program
#make_bin#

assume cs:code  ; code block

code segment  ; code definition
mov cx,15
mov dx,4240  ; delay time = (15*(2^16)+4240) /1000000 s

mov ax,0
x1:
    out 199,ax
    mov bx,ax  ; exchange ax to bx
        mov ah,86h
        int 15h  ; wait for 1 second
        mov ax,bx  ; exchange back
        add ax,2  ; next even number

cmp ax,101  ; compare with 101
jc x1  ; if less, continue looping
hlt  ; if bigger, stop looping
code ends